package com.sloan.community.common.query;

public class SearchQuery {

    private String keyword;

    private Integer current = 1;

    private Integer size = 10;


    public void setKeyword(String keyword) {
        this.keyword = (keyword == null ? "" : keyword);
    }

    public void setCurrent(Integer current) {
        this.current = (current == null || current <= 0) ? 1 : current;
    }

    public void setSize(Integer size) {
        this.size = (size == null || size <= 0) ? 10 : size;
    }

    public String getKeyword() {
        return keyword;
    }

    public Integer getCurrent() {
        return current;
    }

    public Integer getSize() {
        return size;
    }


}
